home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
p_man
/
cat3
/
SLGetDefPrinterName.z
/
SLGetDefPrinterName
Wrap
Text File
|
1998-10-30
|
3KB
|
67 lines
SSSSLLLLGGGGeeeettttDDDDeeeeffffPPPPrrrriiiinnnntttteeeerrrrNNNNaaaammmmeeee((((3333)))) IIIImmmmpppprrrreeeessssssssaaaarrrriiiioooo SSSSLLLLGGGGeeeettttDDDDeeeeffffPPPPrrrriiiinnnntttteeeerrrrNNNNaaaammmmeeee((((3333))))
NNNNAAAAMMMMEEEE
SLGetDefPrinterName - gets the name of the default printer
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
####iiiinnnncccclllluuuuddddeeee <<<<ssssppppoooooooollll....hhhh>>>>
iiiinnnntttt SSSSLLLLGGGGeeeettttDDDDeeeeffffPPPPrrrriiiinnnntttteeeerrrrNNNNaaaammmmeeee((((cccchhhhaaaarrrr ********ppppnnnnaaaammmmeeeepppp))));;;;
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_S_L_G_e_t_D_e_f_P_r_i_n_t_e_r_N_a_m_e returns the name of the default printer registered
with the default spooling system. The parameter _p_n_a_m_e_p is set by the
function to point to the default name string. If there is no default
printer registered with the spooling system, _p_n_a_m_e_p is set to NNNNUUUULLLLLLLL and
the function returns an error indication.
WWWWAAAARRRRNNNNIIIINNNNGGGG
Since a single static internal buffer is used by _l_i_b_s_p_o_o_l to store the
default printer name, subsequent calls to _S_L_G_e_t_D_e_f_P_r_i_n_t_e_r_N_a_m_e may change
the contents of the location pointed to by _p_n_a_m_e_p. A printer name must be
copied to a user buffer to preserve it.
RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
0 is returned if execution was successful. -1 is returned and _S_L_e_r_r_n_o is
set if an execution error has occurred. It is considered an error if
there is no default printer registered with the current default spooling
system.
EEEEXXXXEEEECCCCUUUUTTTTIIIIOOOONNNN EEEERRRRRRRROOOORRRR CCCCOOOODDDDEEEESSSS
_S_L_G_e_t_D_e_f_P_r_i_n_t_e_r_N_a_m_e will fail under the following circumstances.
SL_ERR_FIND_SPOOLER An error occurred while attempting to determine
the available printer spooling systems.
SL_ERR_NO_SPOOLERS There are no printer spooling systems available.
SL_ERR_NO_DEF_PRINTER There is no default printer registered with the
printer spooling system.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
SLGetPrinterList(3), SLPerror(3), libspool(3)
PPPPaaaaggggeeee 1111